package com.twu.biblioteca.ui.menus;

import com.twu.biblioteca.library.Library;

/**
 * @author Alvi Jonathan Sait
 */
public abstract class AbstractReturnToMainMenu extends AbstractMenu {

    protected AbstractReturnToMainMenu(Library library) {
        super(library);
    }

    /**
     * This menu always returns to the Main Menu regardless of the input.
     */
    @Override
    public final AbstractMenu handleInput(String input) {
        return new MainMenu(getLibrary());
    }

    @Override
    public final String getUserPrompt() {
        return "Press <Enter> to return to main menu.";
    }
}
